home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
utility
/
iswin.zip
/
CHKDSK.BAT
next >
Wrap
DOS Batch File
|
1991-07-02
|
1KB
|
33 lines
@Echo OFF
Rem ChkDsk.Bat 07-02-91 tem
Rem Runs renamed chkdsk to prevent exec under Windows which can corrupt
Rem files. Errorlevel 0 if not under Windows; 255 if under Windows.
Rem Source:
Rem InfoWorld Magazine; July 1, 1991, page 19 article titled
Rem Window Manager, by Brian Livingston.
Rem Debug source code by Fran Finnegan in MS Journal, 3/91.
Rem ----- Set envir pointer to dos dir if not already set...
If X%dos%==X Set dos=C:\DOS
Rem ----- Point to wherever you put iswin.com...
%dos%\iswin
If Errorlevel 255 GOTO @WIN
Rem ----- Point to wherever you put chkdsk33 or 40 or 50 or xx...
%dos%\chkdsk33 %1 %2 %3 %4
GOTO @FINIS
:@WIN
Echo ─────────────────────────────────────────────────────────────────
Echo You are running under Windows at this time.
Echo DO NOT run chkdsk while under Windows, or from a shell.
Echo Chkdsk with /f may handle open files as if they were lost files!
Echo That could result in fragmenting them into FILE000x.CHK
Echo files, thus destroying their integrity.
Echo ─────────────────────────────────────────────────────────────────
:@FINIS